# IO模块Makefile
MODULE = io
SRC = file_io.c keyboard_io.c io_common.c
OBJ = $(SRC:.c=.o)
LIB = ../RELEASE/lib$(MODULE).a

CC = gcc
CFLAGS = -Wall -g -I../Include -D$(BUILD_MODE)

$(LIB): $(OBJ)
	@mkdir -p ../RELEASE
	ar rcs $@ $(OBJ)

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -f $(OBJ) $(LIB)

.PHONY: clean
